﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Langben.DAL
{
    [MetadataType(typeof(CemeteryMetadata))]//使用CemeteryMetadata对Cemetery进行数据验证
    public partial class Cemetery : IBaseEntity
    {
      
        #region 自定义属性，即由数据实体扩展的实体
        
        #endregion

    }

    public class CemeteryMetadata
    {
        [ScaffoldColumn(false)]
        [Display(Name = "RowGuid", Order = 1)]
        public object RowGuid { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "QuGuid", Order = 2)]
        [StringLength(50, ErrorMessage = "长度不可超过50")]
        public object QuGuid { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "号", Order = 3)]
        [Range(0, 2147483646, ErrorMessage = "数值超出范围")]
        public int? Hao { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "排", Order = 4)]
        [Range(0, 2147483646, ErrorMessage = "数值超出范围")]
        public int? Pai { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "墓型", Order = 5)]
        [StringLength(50, ErrorMessage = "长度不可超过50")]
        public object ShapeGuid { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "价格", Order = 6)]
        public object Price { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "是否合格", Order = 7)]
        [StringLength(50, ErrorMessage = "长度不可超过50")]
        public object IsYanShou { get; set; }


        [ScaffoldColumn(true)]
        [Display(Name = "Yuan", Order = 8)]
        [StringLength(50, ErrorMessage = "长度不可超过50")]
        public object Yuan { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "Pian", Order = 9)]
        [StringLength(50, ErrorMessage = "长度不可超过50")]
        public object Pian { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "Qu", Order = 10)]
        [StringLength(50, ErrorMessage = "长度不可超过50")]
        public object Qu { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "排名称", Order = 11)]
        [StringLength(50, ErrorMessage = "长度不可超过50")]
        public object PaiName { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "创建人", Order = 12)]
        [StringLength(50, ErrorMessage = "长度不可超过50")]
        public object CreatePerson { get; set; }

        [ScaffoldColumn(true)]
        [Display(Name = "创建时间", Order = 13)]
        [DataType(DataType.DateTime, ErrorMessage = "时间格式不正确")]
        public DateTime? CreateTime { get; set; }

    }


}

